//
//  UIECGView.h
//  vhStressTest1
//
//  Created by jia yu on 2021/9/8.
//

#import <UIKit/UIKit.h>
#import <vhECGTools/vhECGTools.h>

typedef void (^ECGReview_LongLead_Changed) (ECGLead currentLongLead);

NS_ASSUME_NONNULL_BEGIN
@class UIECGReviewLocationView;
@protocol UIECGReViewDataSource;
@interface UIECGReView : UIView
@property (nonatomic) NSECGRealTimeView_Style style;        //default is NSECGRealTimeView_Style_3x4
@property (nonatomic) UIECGReviewLocationView *locationView;
@property (nonatomic) BOOL isContinunceMode;                //for 3x4 and 6x2 Only. default is NO
@property (nonatomic) NSArray <NSArray <NSNumber *>*>*ecgsArray;    //12 lead ECGs
@property (nonatomic) float endECGSeconds;
@property (nonatomic) ECGReview_LongLead_Changed longLeadChangedHandler;
@property (nonatomic) ECGLead longLead; //for 3x4 and 6x2 Only. default is II
@property (nonatomic) float pix_per_mm;
@property (nonatomic) float ECG_rate;
@property (nonatomic) float y_rate;
@property (nonatomic) float x_speed;
@property (nonatomic) UIECGBackgroundView *bgView;
@property (nonatomic) NSDictionary *leadNameFontDictionary;
@property (nonatomic) float lineWidth;      //default is 1.6f
@property (nonatomic) UIColor *lineColor;   //default is  @"1d2023"
@property (nonatomic) id <UIECGReViewDataSource> dataSource;

+(UIECGReView *)shared;
@end

@protocol UIECGReViewDataSource <NSObject>
@optional
-(NSArray <NSNumber *>*)customizedLeads;
@end
NS_ASSUME_NONNULL_END
